Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mime field to DroppedFile #3273

Merged
merged 1 commit into from
Aug 23, 2023
Merged

Add mime field to DroppedFile #3273

merged 1 commit into from
Aug 23, 2023

Conversation

abey79
Copy link
Collaborator

@abey79 abey79 commented Aug 23, 2023

Currently, HoveredFile has a mime field (which is only set on web by egui), but DroppedFile doesn't. This PR adds mime to DroppedFile with the same semantics and behaviour as HoveredFile's. The demos are also updated to show the mime type when it's set (web-only, for known file paths only):

image

@abey79 abey79 changed the title Add mime field to DroppedFiles Add mime field to DroppedFile Aug 23, 2023
@abey79 abey79 added feature New feature or request web Related to running Egui on the web egui labels Aug 23, 2023
@emilk emilk merged commit 2c5fc5a into master Aug 23, 2023
14 of 37 checks passed
@emilk emilk deleted the antoine/mime-dropped-files branch August 23, 2023 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
egui feature New feature or request web Related to running Egui on the web
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants